/* 
 * File:   Main.cpp
 * Author: Guilherme Monteiro
 *
 */

#include "headers/QualityMeasurerTT.h"

using namespace std;

/*
 * Main of QualitMeasurerTT.
 */
int main(int argc, char** argv) {
    if(argc == 1) {
        try {
            
            QualityMeasurerTT* qmtt = new QualityMeasurerTT();
            qmtt->run();
            
            cout << "====> QualityMeasurerTT executed with success." << endl;
        }
        catch(InvalidFileException &ife) {
            cerr << ife.what() << endl;
        }
        catch(CompatibilityAnswersException &cae) {
            cerr << cae.what() << endl;
        }
        catch(exception &e) {
            cerr << "Some error ocurred. Please, report the bug to guilherme.gadelha [at] ccc [dot] ufcg [dot] edu [dot] br" << endl;
        }
    }
    else {
        cerr << "Invalid number of arguments. Verify README to know more." << endl;
    }
    
    return 0;
}

